﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using WeiboPlus.Common;
using WeiboPlus.Shell.ViewModel;

namespace WeiboPlus.Shell.Views
{
    public partial class MessageBoxView : PhoneApplicationPage
    {
        MessageBoxViewModel _vm;
        public MessageBoxView()
        {
            InitializeComponent();

            DataContext = _vm = new MessageBoxViewModel();

            this.Loaded += (o, e) => 
            {
                var aib1 = new ApplicationBarIconButton
                {
                    IconUri = new Uri("Images/AppBarIcons/appbar.tweet.update.png", UriKind.Relative),
                    Text = AppResx.SendText,
                };

                aib1.Click += send_Click;

                var aib2 = new ApplicationBarIconButton
                {
                    IconUri = new Uri("/Images/AppBarIcons/delete.png", UriKind.Relative),
                    Text = AppResx.DeleteAllText,
                };

                aib2.Click += deleteAll_Click;

                this.ApplicationBar.Buttons.Add(aib1);
                this.ApplicationBar.Buttons.Add(aib2);
            };
        }

        private void image_Click(object sender, EventArgs e)
        {

        }

        private void deleteAll_Click(object sender, EventArgs e)
        {

        }

        private void send_Click(object sender, EventArgs e)
        {

        }


    }
}